﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;

namespace Me.Practice.ElevatorEngine.Configuration
{
    public class ElevatorConfigurationElement
        : ConfigurationElement
    {
        [ConfigurationProperty("name", IsKey = true)]
        public string Name
        {
            get { return this["name"] as string; }
        }

        [ConfigurationProperty("capacity", IsRequired = true)]
        public int Capacity
        {
            get { return (int) this["capacity"]; }
        }

        [ConfigurationProperty("timeout", IsRequired = true)]
        public int Timeout
        {
            get { return (int)this["timeout"]; }
        }
    }
}
